package com.dtjd.playcoinmonkey;

import android.app.Application;
import android.content.SharedPreferences;

import com.bytedance.sdk.openadsdk.TTAdConfig;
import com.bytedance.sdk.openadsdk.TTAdConstant;
import com.bytedance.sdk.openadsdk.TTAdSdk;
import com.dtjd.playcoinmonkey.bean.HomeListBean;
import com.dtjd.playcoinmonkey.bean.RecommendListBean;
import com.dtjd.playcoinmonkey.bean.UserBean;

public class MyApplication extends Application {
    public static SharedPreferences sp;
    public static UserBean user;
    public static MyApplication instance;
    public static HomeListBean postBean;
    public static boolean needTicket=true;
    public static RecommendListBean recommendBean;
    public static double wb_money=0;
    @Override
    public void onCreate() {
        super.onCreate();
        instance=this;
        sp=getSharedPreferences("data",MODE_PRIVATE);
        TTAdSdk.init(this, new TTAdConfig.Builder().appId("5226439").useTextureView(true).appName("玩币猴_android").titleBarTheme(TTAdConstant.TITLE_BAR_THEME_DARK).allowShowNotify(true).debug(true).directDownloadNetworkType(TTAdConstant.NETWORK_STATE_WIFI).supportMultiProcess(false).asyncInit(true).build());
    }
}
